package com.carassistant.beta.common;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;

import com.carassistant.beta.R;

/**
 *@fMyjames.java 自定义空件属性
 * @author thinkpad
 * @time2014-1-23
 *
 */
public class MyjamesTextView extends TextView {
	
	private String field=null;
	public MyjamesTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		this.field= attrs.getAttributeValue("http://schemas.android.com/apk/res/com.carassistant.beta.common", "db_field"); 
		  /*TypedArray a = context.obtainStyledAttributes(attrs,  
	                R.styleable.MyjamesTextView);  */
	}
	
	public String getField() {
		return this.field;
	}
	
	
}
